package com.ma.controller;

import com.ma.entity.UserTable;
import com.ma.utils.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author msl
 * @since 2024-08-06
 */
@RestController
@RequestMapping("/userTable")
public class UserTableController {

    /***增加新用户
     *
     * @param userTable
     * @return
     */
    @PostMapping("/add")
    public ResultModel add(@RequestBody UserTable userTable){
        return null;
    }
    /***物理删除用户
     *
     * @param userTable
     * @return
     */
    @PostMapping("/del")
    public ResultModel del(@RequestBody UserTable userTable){
        return  null;
    }
    /***修改用户信息
     *
     * @param userTable
     * @return
     */
    @PostMapping("/update")
    public ResultModel update(@RequestBody UserTable userTable){
        return null;
    }
    /***停用用户
     *
     * @param userTable
     * @return
     */
    @PostMapping("/startUser")
    public ResultModel startUser(@RequestBody UserTable userTable){
        return null;
    }
    /***启用用户
     *
     * @param userTable
     * @return
     */
    @PostMapping("/stopUser")
    public ResultModel stopUser(@RequestBody UserTable userTable){
        return null;
    }
    /*** 按照ID查询
     *
     * @param userTable
     * @return
     */
    @PostMapping("/selectById")
    public ResultModel selectById(@RequestBody UserTable userTable){
        return null;
    }
    /***按照IDS查询
     *
     * @param userTableList
     * @return
     */
    @PostMapping("/selectByIds")
    public ResultModel selectByIds(@RequestBody List<UserTable> userTableList){
        return null;
    }
    /***按照条件分页查询
     *
     * @param userTable
     * @return
     */
    @PostMapping("/selectPages")
    public ResultModel selectPages(@RequestBody UserTable userTable){
        return null;
    }
    /***导出
     *
     * @param userTable
     * @return
     */
    @PostMapping("/export")
    public ResultModel export(@RequestBody UserTable userTable){
        return null;
    }
    /***导入
     *
     * @return
     */
    @PostMapping("/importUser")
    public ResultModel importUser(){
        return null;
    }
    @PostMapping("/login")
    public ResultModel login(@RequestBody UserTable userTable){
        return null;
    }

}
